import API from '../utils/api'
import Qs from 'qs'

export default {
    // 生成token
    getToken: (params = {}) => API.get("/api/getToken.htm", params),
    getRobotInfo: (params = {}) => API.get("/api/getRobotInfo.htm", params),
    // 人员信息获取
    getUserInfo: (params = {}) => API.get("/api/getUserInfo.htm", params),
    // 人员权限
    getUserAuth: (params = {}) => API.get("/api/getUserAuth.htm", params),
    // 初次问候
    getGreetings: (params = {}) => API.get("/api/getGreetings.htm", params),
    // 热门问题问答，当用户点击对话框右侧热门问题时，热门问题的答案会直接显示在对话框中
    // addRecord: (params = {}) => API.post("/api/addRecord.htm", params),
    // 搜索问答,机器人问答
    getTalkAnswers: (params = {}) => API.post("/api/getTalkAnswers.htm", params),
    // 点赞或踩
    comment: (params = {}) => API.post("/api/comment.htm", params),
    // 满意度
    addSatisfaction: (params = {}) => API.post("/api/addSatisfaction.htm", params),

    // 热门问题
    getHotQuestions: (params = {}) => API.get("/api/getHotQuestions.htm", params),
    // 热门搜索
    getSearchQuestions: (params = {}) => API.get("/api/getSearchQuestions.htm", params),
    // 政策解读
    getPolicyAnalyzingList: (params = {}) => API.get("/api/getPolicyAnalyzingList.htm", params),
    getLegalServe: (params = {}) => API.get("/api/getLegalServe.htm", params),
    //优化建议 2020-08-27 shenyi
    addOptimizeAdvise: (params = {}) => API.post("/api/addOptimizeAdvise.htm", params),
    //附件下载 2020-02-01 shenyi
    downloadFile: (url,params = {responseType:'arraybuffer'}) => API.post(url, params),
    //全景图导图
    getQaBankTreeInfo: (params = {}) => API.get("/api/getQaBankTree.htm", params),
    //下载题库
    downloadQeBank: (params = {responseType:'arraybuffer', byDept: true}) => API.post("/api/downloadQeBank.htm", params),
    //根据三级模块下载
    downloadByQueModule: (params = {responseType:'arraybuffer'}) => API.post("/api/downloadByQueModule.htm", params),
    //查找与我关联的岗位的风险点
    findMineRelationQueName: (params = {}) => API.get("/api/findMineRelationQueName.htm", params),
    //获取是否需要显示操作指引
    showOperationGuide: (params = {}) => API.get("/api/showOperationGuide.htm", params),
    //设置已显示操作指引
    setShowedOperationGuide: (params = {}) => API.get("/api/setShowedOperationGuide.htm", params),
    //查询风险行为详情
    getAnswerDetail: (params = {}) => API.post("/api/getAnswerDetail.htm", params),
    // 获取预设关键字
    getPresetKeyWordsTypes: (params = {}) => API.get("/api/getPresetKeyWordsTypes.htm", params),
}